package com.datoucai;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 启动类-评论项目
 *
 *
 */
@SpringBootApplication(scanBasePackages = "com.datoucai",exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.datoucai")
@EnableNacosConfig(globalProperties =
    @NacosProperties(
            serverAddr = "${spring.cloud.nacos.config.server-addr}",
            username = "${spring.cloud.nacos.config.username}",
            password = "${spring.cloud.nacos.config.password}"
    )
)
public class CommentApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(CommentApplication.class,args);
    }
}
